<template>
  <div class="home-header">
    <div class="search">
      <span>搜索商品名称</span>
      <i class="iconfont icon-sousuo" @click="goSearch"></i>
    </div>
    <i class="iconfont icon-xiaoxi"></i>
    <div style="clear: both"></div>
  </div>
</template>

<script>
export default {
  methods: {
    goSearch() {
      this.$router.push({
        name: "search",
      });
    },
  },
  created() {
    // console.log(getVisual);
    // getVisual().then(res=>{
    //     console.log(res);
    // })
  },
};
</script>

<style lang="less" scoped>
.home-header {
  height: 4.4rem;
  width: 100%;
  background-color: transparent;
  display: flex;
  justify-content: space-around;
  align-items: center;
  // position: fixed;
  // top: 0;
  position: relative;
  z-index: 3;
  .search {
    width: 88%;
    height: 3rem;
    text-indent: 2em;
    background-color: #fff;
    border-radius: 3rem;
    line-height: 3rem;
    box-sizing: border-box;
    padding-right: 1.5rem;
    margin-left: 1rem;
    span {
      color: #b3a6b3;
      font-size: 1.3rem;
    }
    .icon-sousuo {
      float: right;
      color: #b3a6b3;
    }
  }
  .icon-xiaoxi {
    font-size: 2.3rem;
    color: #fff;
    margin-right: 0.7rem;
  }
}
</style>